package com.dt76.smallloanbackenduser.remote.lhuaw;

import com.dt76.smallloanbackenduser.hystrix.lhuaw.textHystrix;
import com.dt76.smallloanbackenduser.pojo.lhuaw.TextMessage;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = textHystrix.class)
public interface TextMessagetest {
    //系统消息
    @RequestMapping("/lhuaw/getAllText")
    List<TextMessage> getAllText();
    @RequestMapping("/lhuaw/qryConditionPageAllText")
    public Page qryConditionPageAllText(
            @RequestParam("pageIndex") int pageIndex,
            @RequestParam("tPublisher") String tPublisher);
    //删除
    @RequestMapping("/lhuaw/deleteText")
    public Result deleteText(@RequestParam("tId") int tId);


}
